{% extends 'register/base.html' %}
{% load admin_list i18n %}
{% block title %}<title>:: duetopia :: {% trans 'update' %} - {{ model.verbose_name }}</title>{% endblock %}
{% block tools %}
<a href="{{ baseurl }}dataset/">{% trans "data sets" %}</a> |
<a href="{{ baseurl }}dataset/search/spatial/">{% trans "spatial search" %}</a>
<hr/>
{% endblock %}
{% block script %}
{% endblock %}

{% block content %}

<table class="outline">
<tr><td valign="top" border="0">

{% block search %}
<form method="GET" id="changelist-search">

<table>
<tr><th>{% trans 'match text' %}</th><td><input type="text" name="q" value="{{ params.text }}"/></td></tr>
<tr><th>{% trans 'match title' %}</th><td><input type="text" name="title" value="{{ params.title }}"/></td></tr>
<!--!language issues for text description (md:lang) -->

<tr><th colspan="2">&nbsp;</th></tr>
<tr><th>{% trans 'start' %}</th><td> <input type="text" name="dtstart" value="{{ params.dtstart }}"/></td></tr>
<tr><th>{% trans 'end' %}</th><td> <input type="text" name="dtend" value="{{ params.dtend }}"/></td></tr>
<tr><th colspan="2">
<select name="dtype">
<option value="extents">{% trans 'timespan' %}
<option value="published">{% trans 'published' %}
<option value="indexed">{% trans 'collected' %}
</select>
</td></tr>
<tr><th colspan="2">&nbsp;</th></tr>

<tr><th>{% trans 'contact name' %}</th><td><input type="text" name="contactname" value="{{ params.contactname }}"/></td></tr>
<tr><th>{% trans 'contact email' %}</th><td><input type="text" name="contactemail"  value="{{ params.contactemail }}"/></td></tr>


<!-- # add to model for INSPIRE compliance -->

<!-- md:resolution 
        md:specification (well, this is 'format' really.)-->

<tr><th colspan="2"><input type="submit" value="search"/></th></tr>
</table>
</form>
{% endblock %}

</td>
<td>

<div class="changelist">
<h3>{% trans 'query results' %}: {{model.verbose_name}}</h3>
{% block result_list %}{% result_list cl %}{% endblock %}
{% block pagination %}{% pagination cl %}{% endblock %}
</div>

<p><input id="query" type="text"></p>
<div id="preview"></div>

{% endblock %}

</td>
</tr>
</table>
